package com.endoc.designpattern.faced;

import com.endoc.designpattern.bridge.BagAbstraction;
import com.endoc.designpattern.bridge.material.Material;
import com.endoc.designpattern.bridge.material.PaperMaterial;
import com.endoc.designpattern.bridge.size.BigBagSize;

/**
 * 采摘服务
 */
public class PickService {

    /**
     * 采摘动作
     */
    public void doPick(){
        //袋子型号
        BagAbstraction pickBag = new BagAbstraction();

        //袋子材质
        Material material = new PaperMaterial();
        pickBag.setMaterial(material);
        BigBagSize bigBagSize = new BigBagSize();
        pickBag.setBagSize(bigBagSize);

        //开始采摘
        pickBag.pick();
    }
}
